Page Objct Model ================= Page Object Model, also known as POM is a design pattern in Selenium that creates an object repository for storing all web elements. It is useful in reducing code duplication and improves test case maintenance. Advantages of POM: ================== 1.Helps with easy maintenance 2.Helps with reusing code 3.Readability increases Page Factory: ============= Page Factory is a class provided by Selenium WebDriver to support Page Object Design patterns. In Page Factory,we use annotation are @FindBy @FindAll-->When required WebElement objects need to match at least one of the given criteria use @FindAll annotation @FindBys--/> When the required WebElement objects need to match all of the given criteria use @FindBys annotation @CatchLookUp Below are locators that can be used: ==================================== id ClassName Css Xpath TagName LinkText PartialLinkText initElements(): =============== initElements is a static method in Page Factory class.The initElements method is used to initialize web elements. Using the initElements method, one can initialize all the web elements located by @FindBy annotation.